import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-home',
  templateUrl: './home.component.html',
  styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {

  public title:string='这是一个title'

  public flag:boolean=true;

  public imgUrl:string="//www.baidu.com/img/dong_28db0e2033ff1faf14771bc40ad0a9cd.gif";

  public num:number=1;

  public classNum:number[]=[1,2,3,4]

  public today:any=new Date();

  constructor() { }

  ngOnInit() {
  }


  alert(){
    alert("这是一个弹窗")
  }

  updateTitle(){
    this.title='修改之后的title';
  }

  keyDown(e){
    console.log(e)
  }
}
